<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试自封装的公共库</title>
    <script src="js/common.js"></script>
</head>
<body>
<p class="content">a</p>
<p class="content">b</p>
<p class="content">c</p>
<p>d</p>
<script>
    let pList = $1("content");
    for (let i = 0; i < pList.length; i++) {
        console.log(pList.item(i).innerText);
    }
</script>
</body>
</html>